package airthmetic.exercise.bit;

public class _231_2的幂 {

    public boolean isPowerOfTwo(int n) {
        if(n <= 0){
            return false;
        }

        return (n & (n-1)) == 0;
    }
}
